# 打印"hello Python"五次
i = 0
while i < 5:
    print("hello Python")
    i += 1

# 计算1+2+3+……+100的和
i = 1
total = 0
while i < 101:
    total += i
    i += 1
print("1+2+3+……+100总和为：", total)

# 计算1！+2！+3！+……+n!
m = 1
result = 0
while m <= 4:
    n = 1
    result1 = 1
    while n <= m:
        result1 *= n
        n += 1
    print(m, "!=", result1, sep='')
    result += result1
    m += 1
print("1！+2！+3！+……+n!总和为：", result)



